#ifndef SHELL_H
#define SHELL_H

//#define PROMPT "spiderpig$ "
#define SHELL_MAX_ARG 64
#define SHELL_MAX_VAR_DIM 512
#define SHELL_VAR_NAME_DIM 32


/*
typedef struct
{
	char name[SHELL_VAR_NAME_DIM];
	char desc[128];
	void (*func)();
} command_t;

command_t commands[1024];
int cmdnum;
*/

char PROMPT[100];
char argv[SHELL_MAX_ARG][256];
int argc;

int shell();
void shell_put_prompt();
void shell_autocomplete(char *);
int shell_parse_command(char *);

void SHELL_ADD_COMMAND(char *, char *, void (*func)());

#endif
